<extend name="Layout:layout_form" />
<block name="body_main">
    <taglib name="Common\TagLib\Sohtml"/>
    <form action="{:AddonU('link_edit_save')}" method="post" class="xsui-form" enctype="multipart/form-data">
        <fieldset>
            <div class="xsui-form-field">
                <label>标题：</label>
                <input type="text" name="title" placeholder="标题" value="{$data.title}" required="required" size="30" />
            </div>
            <div class="xsui-form-field">
                <label>链接地址：</label>
                <input type="text" name="link_url" placeholder="链接地址" value="{$data.link_url}" required="required" size="75" />
            </div>
            <div class="xsui-form-field">
                <label>图片地址：</label>
                <sohtml:file name="image_url" value="{$data.image_url}" />
            </div>
            <div class="xsui-form-field">
                <label>备注：</label>
                <input type="text" name="remark" placeholder="备注" value="{$data.remark}" size="80" />
            </div>
            <div class="xsui-form-field xsui-form-mgb">
                <label>状态：</label>
                <sohtml:radio name="status" items="1=显示;0=隐藏" value="{$data.status|default=0}" required="required" />
            </div>
        </fieldset>
        <button type="submit" class="xsui-hidden">提交</button>
        <input type='hidden' name='id' value='{$data.id}'/>
    </form>
</block>
<block name="body_foot_script">
    <script>
        $(function () {
            FormPage.ui_init();
        })
    </script>
</block>